home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacPerl 5.0.3 / MacPerl Source ƒ / MacPerl5 / pod / modpods / Cwd.pod < prev    next >
Encoding:
Text File  |  1994-12-26  |  679 b   |  27 lines  |  [TEXT/MPS ]

  1. =head1 NAME
  2.  
  3. getcwd - get pathname of current working directory
  4.  
  5. =head1 SYNOPSIS
  6.  
  7.     require Cwd;
  8.     $dir = Cwd::getcwd()'
  9.  
  10.     use Cwd;
  11.     $dir = getcwd()'
  12.  
  13.     use Cwd 'chdir';
  14.     chdir "/tmp";
  15.     print $ENV{'PWD'};
  16.  
  17. =head1 DESCRIPTION
  18.  
  19. The getcwd() function re-implements the getcwd(3) (or getwd(3)) functions
  20. in Perl.  If you ask to override your chdir() built-in function, then your
  21. PWD environment variable will be kept up to date.  (See
  22. L<perlsub/Overriding builtin functions>.)
  23.  
  24. The fastgetcwd() function looks the same as getcwd(), but runs faster.
  25. It's also more dangerous because you might conceivably chdir() out of a
  26. directory that you can't chdir() back into.
  27.